home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / SML⁄NJ 93+ / Documentation / examples / textbooks / four_lectures / build1.sml next >
Encoding:
Text File  |  1995-12-30  |  626 b   |  31 lines  |  [TEXT/R*ch]

  1. (* build1.sml *)
  2.  
  3.                (* building the system *)
  4.  
  5. structure Expression= Expression();
  6.  
  7. structure Parser= Parser(Expression);
  8.  
  9. structure Value = Value();
  10.  
  11. structure Evaluator= 
  12.    Evaluator(structure Expression= Expression
  13.              structure Value = Value);
  14.  
  15.  
  16. structure Ty = Type(); 
  17.  
  18.  
  19. structure TyCh= 
  20.   TypeChecker(structure Ex = Expression
  21.               structure Ty = Ty);
  22.  
  23. structure Interpreter=
  24.   Interpreter(structure Ty= Ty
  25.               structure Value = Value
  26.               structure Parser = Parser
  27.               structure TyCh = TyCh
  28.               structure Evaluator = Evaluator);
  29.  
  30. open Interpreter;
  31.